package Work4.CalculateArea;


public class Circle extends Shape {
	private double r;
	
	public Circle(double r) {
		super("Circle");
		this.r=r;
	}

	public double getR() {
		return r;
	}

	public void setR(double r) {
		this.r = r;
	}
	
	@Override
	public double CalculateArea() {
		return Math.PI*r*r;
	}
	
	@Override
	public double CalculateLength() {
		return 2*Math.PI*r;
	}
}
